package uiLayer;

import modelLayer.OrderLine;

public class OrderLineWrapper {
	
	private OrderLine orderLine;
	private boolean added;
	
	public OrderLineWrapper(OrderLine ol) {
		
		setAdded(true);
		setOrderLine(ol);
		
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		
		return "OrderLineWrapper [ added=" + this.added + " --- orderLine=" + this.orderLine.getProduct().toString() + "]";

	}
	/**
	 * @return the added
	 */
	public boolean isAdded() {
		
		return this.added;
		
	}
	/**
	 * @param added the added to set
	 */
	public void setAdded(boolean added) {
		
		this.added = added;
		
	}
	/**
	 * @return the orderLine
	 */
	public OrderLine getOrderLine() {
		
		return this.orderLine;
		
	}
	/**
	 * @param orderLine the orderLine to set
	 */
	public void setOrderLine(OrderLine orderLine) {
		
		this.orderLine = orderLine;
		
	}
	
	

}
